<template>
	<view class="mingxi">
		<view style="display: flex;justify-content: flex-end;margin-bottom: 10px;">
			<view class="head_btn" @click="jump_cash">去提现</view>
		</view>
		<view class="ticheng">
			<block v-for="(item,index) of list" :key="index">
				<li class="tc">
					<view class="tc_l">
						<span>代理提成-{{item.card.bank_num.substr(item.card.bank_num.length-4)}}</span><br/>{{item.create_time}}
					</view>
					<view class="tc_2">
						+{{item.money}}<br/>
						<span v-if="item.status==0">提现中</span>
						<span v-if="item.status==1">已完成</span>
					</view>
				</li>
			</block>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[{"id":3,"shop_id":9,"shop_user_id":7,"card_id":4,"card_num":"","money":"1.00","money_befor":"0.00","status":1,"ip":"1.207.135.142","pay_aid":1,"pay_date":1571883814,"create_time":"2019-10-23 14:49:58","card":{"id":4,"shop_id":9,"bank_name":"建设银行","bank_num":"4444444","username":"444","type":4,"create_time":"2019-10-23 09:17:49"}},{"id":4,"shop_id":9,"shop_user_id":7,"card_id":4,"card_num":"4444444","money":"1.00","money_befor":"0.00","status":1,"ip":"222.87.187.218","pay_aid":1,"pay_date":1571884377,"create_time":"2019-10-24 10:29:16","card":{"id":4,"shop_id":9,"bank_name":"建设银行","bank_num":"4444444","username":"444","type":4,"create_time":"2019-10-23 09:17:49"}},{"id":5,"shop_id":9,"shop_user_id":7,"card_id":5,"card_num":"666666666","money":"1.00","money_befor":"0.00","status":0,"ip":"222.87.187.218","pay_aid":0,"pay_date":0,"create_time":"2019-10-24 10:33:25","card":{"id":5,"shop_id":9,"bank_name":"农业","bank_num":"666666666","username":"66","type":0,"create_time":"2019-10-23 10:51:02"}}],
				num:0,
			};
		},
		onLoad() {  
			
		},
		methods:{
			
			jump_cash(){
				uni.navigateTo({
					url: '/pages/user/cash/cash',
				});
			},
			change(e){
				this.num=e 
			}
		}
	}
</script>

<style lang="less">
.mingxi{
	.head{display: flex;margin: 10px 0;}
	.head_l{display: flex;width: 85%;justify-content: space-around;}
	.head_r{width: 15%;text-align: center;}
	.head_l_1{border: 1px solid #F2F2F2;padding: 0px 15px;line-height: 25px;}
	.head_btn{border-radius: 10px;margin:10px 20px 0;border: 1px solid #EEEEEE;background-color: #EEEEEE;padding: 5px 15px;line-height: 25px;font-size: 15px;}
	.ling{color: #E1461D;border: 1px solid #E1461D;padding: 0px 15px;line-height: 25px;}
	.shouyi{border-top: 1px solid #EBEBEB;border-bottom:1px solid #EBEBEB; background-color: #FAFAFA;display: flex;height: 30px;
	line-height: 30px;padding: 3px 10px;margin-top: 15px;}
	.sy_l{width: 50%;}
	.sy_l span{font-weight: bold;}
	.ticheng li:nth-of-type(odd){ background-color: #f9f8f8;} 
	.ticheng li:nth-of-type(even){background-color: #fff;} 
	.tc{display: flex;justify-content: space-between;padding: 10px;line-height: 25px;font-size: 14px;}
	.tc_l{color: #9A9A9A;}
	.tc_l span{font-size: 14px;font-weight: bold;color: #9A9A9A;}
	.tc_2{color: #E1461D;}
	.tc_2 span{color: #9A9A9A;}
}
</style>
